package com.clt.ess.CABeen;

import java.io.Serializable;

//使用 taskId 查询下载证书业务参数说CA 系统响应data参数中的package（同步）
public class CheckResultPackage implements Serializable {
    //Base64 编码签名证书
    //必须
    private String signCert;
    //Base64 编码的加密证书
    //必须
    private String encCert;
    //Base64 编码的加密密钥对保护结构，被编码的结构ENVELOPEDKEYBLOB，遵从 GM/T 0016—2012 标准
    //必须
    private String encKeyProtection;

    /**
     {
         " signCert ": "base64编码的签名证书",
         " encCert ": "base64编码的加密证书",
         " encKeyProtection": " Base64编码的加密密钥对保护结构"
     }
     */
    public CheckResultPackage() {
    }

    public CheckResultPackage(String signCert, String encCert, String encKeyProtection) {
        this.signCert = signCert;
        this.encCert = encCert;
        this.encKeyProtection = encKeyProtection;
    }

    public String getSignCert() {
        return signCert;
    }

    public void setSignCert(String signCert) {
        this.signCert = signCert;
    }

    public String getEncCert() {
        return encCert;
    }

    public void setEncCert(String encCert) {
        this.encCert = encCert;
    }

    public String getEncKeyProtection() {
        return encKeyProtection;
    }

    public void setEncKeyProtection(String encKeyProtection) {
        this.encKeyProtection = encKeyProtection;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"signCert\":\"")
                .append(signCert).append('\"');
        sb.append(",\"encCert\":\"")
                .append(encCert).append('\"');
        sb.append(",\"encKeyProtection\":\"")
                .append(encKeyProtection).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
